<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="utf-8"/>
	<title>添加资讯</title>
	<meta name="renderer" content="webkit"/>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
	<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
	<meta name="apple-mobile-web-app-capable" content="yes"/>
	<meta name="format-detection" content="telephone=no"/>
	<link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
	<link rel="stylesheet" type="text/css" href="../../js/plugins/FroalaEditor/css/font-awesome.4.6.0.css"/>
	<link rel="stylesheet" type="text/css" href="../../js/plugins/FroalaEditor/css/froala_editor.min.css" />
	<link rel="stylesheet" type="text/css" href="../../js/plugins/TUpload/css/upload.css" />


	<script type="text/javascript" src="../../layui/layui.js"></script>
	<!--<script type="text/javascript" src="../../js/common/wangEditor.min.js"></script>-->

	<script type="text/javascript" src="../../js/plugins/FroalaEditor/js/jquery-1.9.1.min.js"></script>
	<script type="text/javascript" src="../../js/plugins/TUpload/js/T_upload.js"></script>

	<script type="text/javascript" src="../../js/plugins/FroalaEditor/js/froala_editor.min.js"></script>
	<script type="text/javascript" src="../../js/plugins/FroalaEditor/js/langs/zh_cn.js" async="async"></script>
	<script type="text/javascript" src="../../js/plugins/FroalaEditor/js/plugins/lists.min.js" async="async"></script>
	<script type="text/javascript" src="../../js/plugins/FroalaEditor/js/plugins/colors.min.js" async="async"></script>
	<script type="text/javascript" src="../../js/plugins/FroalaEditor/js/plugins/media_manager.min.js" async="async"></script>
	<script type="text/javascript" src="../../js/plugins/FroalaEditor/js/plugins/font_family.min.js" async="async"></script>
	<script type="text/javascript" src="../../js/plugins/FroalaEditor/js/plugins/font_size.min.js" async="async"></script>
	<script type="text/javascript" src="../../js/plugins/FroalaEditor/js/plugins/block_styles.min.js" async="async"></script>
	<script type="text/javascript" src="../../js/plugins/FroalaEditor/js/plugins/video.min.js" async="async"></script>

	<script type="text/javascript" src="../../js/information/informationAdd.js?version=1.0.1" async="async"></script>

	<style>
		.layui-form-item .layui-input-inline-n{
			display: inline-block;
			width: 190px;
			margin-right: 10px;
		}

		.layui-form-item .layui-input-inline-n .no-border{
			border:none;
		}

		/*.layui-form-radio{*/
			/*margin:0px 10px 0px 0px!important;*/
		/*}*/
	</style>
</head>
<body class="childrenBody">
	<form class="layui-form" id="informationForm">
		<div class="layui-form-item">
			<label class="layui-form-label">标题</label>
			<div class="layui-input-block">
				<input type="text" name="title" class="layui-input informationName" lay-verify="title" placeholder="标题的长度为5-30个汉字"/>
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">文章内容</label>
			<div class="layui-input-block">
				<section id="editor">
					<textarea name="content" id='froalaEditor' style="margin-top: 30px;" class="layui-textarea">

					</textarea>
				</section>
			</div>
		</div>
		<!--<div class="layui-form-item">-->
			<!--<div class="layui-inline">-->
				<!--<label class="layui-form-label">属性</label>-->
				<!--<div class="layui-input-block">-->
					<!--<input type="checkbox" name="intro" th:field="*{isIntro}" th:value="0" class="tuijian" title="推荐"/>-->
					<!--&lt;!&ndash;<input type="checkbox" name="shenhe" class="newsStatus" title="审核">&ndash;&gt;-->
					<!--<input type="checkbox" name="show" th:field="*{isShow}" th:value="0" class="isShow" title="展示"/>-->
				<!--</div>-->
			<!--</div>-->
			<!---->
			<!--<div class="layui-inline">		-->
				<!--<label class="layui-form-label">发布时间</label>-->
				<!--<div class="layui-input-inline">-->
					<!--<input type="text" class="layui-input newsTime" th:field="*{createTime}" lay-verify="required|date" onclick="layui.laydate({elem:this})"/>-->
				<!--</div>-->
			<!--</div>-->
		<!--</div>-->

		<div class="layui-form-item">
			<label class="layui-form-label">视频地址</label>
			<div class="layui-input-block">
				<input type="text" lay-verify="videoUrl" name="videoUrl" class="layui-input" placeholder="请输入视频地址"/>
			</div>
		</div>


		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">栏目分类</label>
				<div class="layui-input-inline">
					<select name="navType" class="newsLook" lay-filter="browseLook" id="navType">
						<option th:each="nav,iterStat:${navList}" th:value="${iterStat.index}" th:text="${nav}"></option>
						<!--<option value="0">推荐</option>-->
						<!--<option value="1">电视剧</option>-->
						<!--<option value="2">推荐</option>-->
						<!--<option value="3">电视剧</option>-->
						<!--<option value="4">推荐</option>-->
						<!--<option value="5">电视剧</option>-->
					</select>
				</div>
			</div>
		</div>
		<!--<div class="layui-form-item">-->
			<!--<div class="layui-inline">-->
				<!--<label class="layui-form-label">楼层分类</label>-->
				<!--<div class="layui-input-inline">-->
					<!--<select name="browseLook" th:field="*{floorType}" class="newsLook" lay-filter="floorType" id="floorType">-->
						<!--<option th:each="floor,iterStat:${floorList}" th:value="${iterStat.index}" th:text="${floor}"></option>-->
						<!--&lt;!&ndash;<option value="0">开放浏览</option>&ndash;&gt;-->
						<!--&lt;!&ndash;<option value="1">会员浏览</option>&ndash;&gt;-->
					<!--</select>-->
				<!--</div>-->
			<!--</div>-->
		<!--</div>-->

		<div class="layui-form-item">
			<label class="layui-form-label">作者</label>
			<div class="layui-input-block">
				<input type="radio" name="fromType" checked="checked" value="0" title="原创" lay-filter="fromType"/>
				<input type="radio" name="fromType" value="1" title="转载" lay-filter="fromType"/>

				<!--<input type="hidden" th:field="*{author}" id="authorH"/>-->

				<div class="layui-input-inline-n" id="originalAuthor" style="display: none;">
					<input class="layui-input no-border" readonly="readonly" value=""/>
				</div>

				<div class="layui-input-inline-n" id="reprintAuthor" style="display: none;">
					<input type="text" name="author" class="layui-input informationName" placeholder="来源转载限8个汉字"/>
				</div>
			</div>
		</div>

		<div class="layui-form-item" style="">
			<label class="layui-form-label">图文专区</label>
			<div class="layui-input-block">
<!--				<input type="radio" name="imgStatusRadio" value="30" title="标题三图" lay-filter="imgStatusRadio"/>-->
<!--				<input type="radio" name="imgStatusRadio" value="12" title="大图文" lay-filter="imgStatusRadio"/>-->
				<input type="radio" checked="checked" name="imgStatusRadio" value="13" title="左右图文" lay-filter="imgStatusRadio"/>
				<input type="radio" name="imgStatusRadio" value="13" title="无图文样式" lay-filter="imgStatusRadio"/>

				<input type="hidden" id="imgStatusInput" name="imgStatus" value="13" title="默认图文" />
			</div>
		</div>
		<!--<div class="layui-form-item">-->
			<!--<label class="layui-form-label">内容摘要</label>-->
			<!--<div class="layui-input-block">-->
				<!--<textarea placeholder="请输入内容摘要" class="layui-textarea"></textarea>-->
			<!--</div>-->
		<!--</div>-->

		<!--<div class="layui-form-item">-->
			<!--<label class="layui-form-label">文章内容</label>-->
			<!--<div class="layui-input-block">-->
				<!--<textarea class="layui-textarea layui-hide" th:field="*{context}" lay-verify="content" id="dramas_content"></textarea>-->
			<!--</div>-->
		<!--</div>-->

		<!--<div class="layui-form-item">-->
			<!--<label class="layui-form-label">文章内容</label>-->
			<!--<div class="layui-input-block" id="editorArea">-->
				<!--<textarea class="layui-textarea layui-hide" name="content" lay-verify="content" id="dramas_content1"></textarea>-->
			<!--</div>-->
		<!--</div>-->

		<!--<input type="hidden" th:field="*{content}" id="contentH"/>-->

		<div class="layui-form-item">
			<label class="layui-form-label">封面上传</label>
			<div class="layui-input-block" id="T_upload">

			</div>
		</div>

		<input type="hidden" name="coverUrl" id="coverUrl"/> <!--封面图地址-->
		<input type="hidden" name="status" value="1" id="inforStatus"/> <!--资讯状态-->
		<input type="hidden" name="statusValue" value="待审核" id="infoStatusValue"/> <!--资讯状态值-->

		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" id="addInformation">立即提交</button>
				<button class="layui-btn" lay-submit="" id="addInformationToDraft">保存为草稿</button>
				<input class="layui-btn" type="submit" id="" value="立即提交" style="display: none;"/>
				<!--<input class="layui-btn" type="submit" value="保存为草稿"/>-->
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		    </div>
		</div>
	</form>


</body>
</html>